package com.hh.m15e.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.hh.m15e.domain.SpYhwx2Ybxdcx;
import com.hh.m15e.domain.po.FirstMedicalResponse;
import com.hh.m15e.domain.po.SecondMedicalResponse;
import com.hh.m15e.mapper.SpYhwx2YbxdcxMapper;
import com.hh.m15e.service.ISpYhwx2YbxdcxService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;


import java.util.List;

@Service
public class SpYhwx2YbxdcxServiceImpl extends ServiceImpl<SpYhwx2YbxdcxMapper, SpYhwx2Ybxdcx> implements ISpYhwx2YbxdcxService {

    @Autowired
    private SpYhwx2YbxdcxMapper spYhwx2YbxdcxMapper;
    @Override
    public SpYhwx2Ybxdcx getSpYhwx2Ybxdcx(String tmh) {
        List<List<Object>> data = spYhwx2YbxdcxMapper.callSpYhwx2Ybxdcx(tmh);
        return new SpYhwx2Ybxdcx((FirstMedicalResponse) data.get(0).get(0), (SecondMedicalResponse) data.get(1).get(0));
    }
}
